package com.sgb.kjwl.view.ui.activity.house;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import androidx.fragment.app.FragmentActivity;

import com.amap.api.maps.AMap;
import com.amap.api.maps.model.Marker;
import com.sgb.kjwl.R;

public class MapInfoWinAdapter implements AMap.InfoWindowAdapter {
    private FragmentActivity context;

    public MapInfoWinAdapter(FragmentActivity activity) {
        this.context = activity;
    }

    @Override
    public View getInfoWindow(Marker marker) {
        View view = View.inflate(context, R.layout.marker_info_layout, null);
        TextView tv_addr = view.findViewById(R.id.tv_addr);
        tv_addr.setText(marker.getSnippet());
        return view;
    }


    @Override
    public View getInfoContents(Marker marker) {
        return null;
    }

}
